package reader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import reader.entity.Book;
import reader.entity.Category;

import java.util.List;
import java.util.Map;

public interface BookService {
    IPage<Book> selectPage(Long categoryId, String order, Integer page, Integer rows);

    IPage<Map> selectBookMap(Integer page, Integer rows);

    Book selectBookById(Long id);

    public void updateScore();

    public void createBook(Book book);

    public Book updateBook(Book book);

    public void deleteBook(Long bookId);
}
